import MainLayout from "../layout/MainLayout";
import { createBrowserRouter, RouteObject } from "react-router-dom";
import SysteamUserManage from "../views/systeamUserManage/SysteamUserManage";
import SoapOperaManage from "../views/soapOperaManage/SoapOperaManage";
import EpisodeManage from "../views/episodeManage/EpisodeManage";

const routes: RouteObject[] = [
  {
    path: "/",
    element: <MainLayout></MainLayout>,
    children: [
      {
        path: "systeamUserManage",
        element: <SysteamUserManage></SysteamUserManage>,
      },
      {
        path: "soapOperaManage",
        element: <SoapOperaManage></SoapOperaManage>,
      },
      {
        path: "episodeManage",
        element: <EpisodeManage></EpisodeManage>,
      },
    ],
  },
];

const router = createBrowserRouter(routes);
export default router;
